import { SettingPermissionService } from 'services/Api'

/* 状态相关（恢复禁用按钮）
-------------------------- */
export const StatusMixin = {
  data () {
    return {
      isStatusOpposite: true
    }
  },
  computed: {
    // 捎货类型 禁用,解禁参数
    alterAdminUserStatusParam () {
      return {
        acc_id: this.acc_id,
        ids: this.selectIds,
        status: this.status
      }
    }
  },
  methods: {
    // 改变捎货类型状态接口
    currentStatusApi () {
      return SettingPermissionService.alterAdminUserStatus(this.alterAdminUserStatusParam)
    }
  }
}
